package com.shangyitong.yygh_statistics.controller;


import com.shangyitong.Result;
import com.shangyitong.client.OrderFeignClient;
import com.shangyitong.yygh.vo.order.OrderCountQueryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;

@RestController
@RequestMapping("/admin/statistics")
public class StatisticsController {

    @Autowired
    private OrderFeignClient orderFeignClient;

    @GetMapping("/getCountMap")
    public Result getCountMap(OrderCountQueryVo orderCountQueryVo){
        Map<String, Object> dateMap = orderFeignClient.getCountMap(orderCountQueryVo);
        return Result.ok(dateMap);
    }
}
